$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      max-height: 100vh;
    }

    .text {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      text-align: center;
      transform: translateY(-50%);
      font-size: $fontSize_64;
      color: white;
      font-weight: 600;
      text-transform: uppercase;
      font-style: italic;
    }
  }

  .section1 {
    width: 70vw;
    margin: 4vw auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;

    .item {
      width: 33%;

      .pic {
        width: 100%;
        overflow: hidden;

        img {
          width: 100%;
          object-fit: cover;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .text {
        margin: 20px 0;

        .p1 {
          color: #151C24;
          font-size: $fontSize_24;
          font-weight: 600;
        }

        .des {
          color: #151C24;
          font-size: $fontSize_16;
          margin-top: 1vw;
          line-height: 1.5;
        }
      }
    }
  }

  .section2 {
    width: 80vw;
    margin: 0 auto 4vw auto;

    .item {
      display: flex;
      justify-content: space-between;

      .text {
        width: calc(50% - 6vw);
        padding: 3vw;

        .p1 {
          color: #C60C3E;
          font-size: $fontSize_32;
          font-weight: 600;
        }

        .pp1 {
          color: #C60C3E;
          font-size: $fontSize_22;
          font-weight: 600;
          margin: 2vw 0 1vw 0;
        }

        .p2 {
          color: #3D474C;
          font-size: $fontSize_16;
          line-height: 1.8;
          margin: 1.5vw 0;
        }

        .des {
          color: #3D474C;
          font-size: $fontSize_16;
          line-height: 1.8;
          width: 90%;
          margin: 0 auto 2vw auto;
        }

        .des2 {
          font-style: italic;
          color: #3D474C;
          font-size: $fontSize_18;
          font-weight: bold;
          line-height: 1.5;
          margin-top: 1vw;
        }

        .links {
          a {
            display: flex;
            align-items: center;
            margin-bottom: 0.8vw;

            p {
              color: #3D474C;
              font-size: $fontSize_18;
              font-weight: 600;
              margin-right: 10px;
            }
          }
        }
      }

      .pic {
        width: 50%;
        overflow: hidden;

        img {
          width: 100%;
          object-fit: cover;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }
    }

    .item:nth-child(2n) {
      flex-direction: row-reverse;
    }
  }

  .section3 {
    background: #F7F7F7;
    padding: 4vw 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .l {
      width: 55%;

      img {
        width: 100%;
      }
    }

    .r {
      width: 45%;

      .item {
        text-align: center;
        margin: 4vw 0;
        .t1 {
          color: #181818;
          font-size: $fontSize_32;
          display: flex;
          justify-content: center;
          align-items: center;
          position: relative;
          padding-bottom: 15px;
          font-family: 'Montserrat-Light';
          &::after {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            bottom: 0;
            background: #D9D9D9;
            width: 70px;
            height: 4px;
            transform: translateX(-50%);
          }

          .num {
            color: #C8161E;
            font-size: $fontSize_36;
            margin-right: 10px;
            font-family: 'Montserrat-Light';
          }
        }
        .t2{
          font-size: $fontSize_14;
          font-weight: 300;
          margin: 1vw 0;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .text{
        font-size: 24px;
      }
    }
    .section1{
      width: 90%;
      margin: 30px auto 0 auto;
      gap: 10px;
      flex-direction: column;
      .item{
        width: 100%;
        .text{
          margin: 15px 0;
          .p1{
            font-size: 18px;
          }
          .des{
            font-size: 14px;
            margin-top: 10px;
          }
        }
      }
    }
    .section2{
      width: 90%;
      margin: 0 auto 30px auto;
      .item{
        flex-direction: column;
        .text{
          width: 100%;
          padding: 20px 0;
          .p1{
            font-size: 18px;
          }
          .pp1{
            font-size: 16px;
          }
          .p2{
            font-size: 16px;
            line-height: 1.5;
          }
          .links{
            a{
              margin-bottom: 10px;
              p{
                font-size: 16px;
              }
            }
          }
          .des{
            font-size: 14px;
          }
          .des2{
            font-size: 14px;
          }
        }
        .pic{
          width: 100%;
        }
      }
      .item:nth-child(2n){
        flex-direction: column;
      }
    }
    .section3{
      padding: 20px 5%;
      flex-direction: column;
      .l{
        width: 100%;
      }
      .r{
        width: 100%;
        .item{
          margin: 30px 0;
          .t1{
            font-size: 18px;
            .num{
              font-size: 18px;
            }
          }
          .t2{
            font-size: 14px;
            margin: 15px 0;
          }
        }
      }
    }
  }
}